const env = process.env
const isDev = env.NODE_ENV === 'development'
const ASSETS_CDN = 'https://pvjs.oss-cn-shanghai.aliyuncs.com/srm/saber'
const baseUrl = isDev ? '' : env.NODE_ENV === 'production' ? '' : env.NODE_ENV === 'test' ? '' : ''

module.exports = {
  baseUrl,
  ASSETS_CDN,
  LOGO: ASSETS_CDN + '/favicon.png',
  ELEMENT_UI_CDN: `${ASSETS_CDN}/element-ui/2.15.1/theme-chalk/index.css`,
  iconfontUrl: `//at.alicdn.com/t/font_$key.css`,
  uploadUrl: '/api/blade-resource/oss/endpoint/put-file-attach',
  iconfontVersion: ['567566_pwc3oottzol', '3206016_nq7r8gbdo8s'],
  codeUrl: `${baseUrl}/code`,
  env,
  isDev
}
